package org.example.model;

import org.example.model.Enum.ItemType;
import org.example.model.PoJo.Item;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

public class ItemList {
    public static final ArrayList<Item> stapleFood = new ArrayList<>();
    public static final ArrayList<Item> stapleDrink = new ArrayList<>();
    public static final ArrayList<Item> stapleCake = new ArrayList<>();



    public static void setItems() {
        // 主食类
        Item hamburger = new Item("H001", "汉堡", 15.0, ItemType.MAIN);
        Item fries = new Item("F002", "薯条", 15.0, ItemType.MAIN);
        Item chickenWrap = new Item("W003", "鸡肉卷", 12.0, ItemType.MAIN);

        Collections.addAll(stapleFood,hamburger,fries,chickenWrap);

        // 饮料类
        Item icedCoffee = new Item("C004", "冰咖啡", 10.0, ItemType.DRINK);
        Item cola = new Item("C005", "可乐", 8.0, ItemType.DRINK);
        Item orangeJuice = new Item("J006", "橙汁", 9.0, ItemType.DRINK);
        Collections.addAll(stapleDrink,icedCoffee,cola,orangeJuice);
        // 甜品类
        Item iceCream = new Item("D007", "冰淇淋", 6.0, ItemType.DESSERT);
        Item cake = new Item("D008", "蛋糕", 12.0, ItemType.DESSERT);
        Collections.addAll(stapleCake,iceCream,cake);
    }
}
